package com.nsession.common;

import com.nsession.response.NSessionResponse;

/** 响应转换
 * Created by hp on 2016/4/7.
 */
public class ResponseRender {
    public static <T> NSessionResponse<T> renderSuccessResult(T obj) {
        NSessionResponse<T> response = new NSessionResponse<T>();
        response.setResult(obj);
        ErrorHolder.setError(response, ErrorDef.SUCCESS);
        return response;
    }
}
